<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="user" class="entity.User" scope="session"/>
<jsp:useBean id="comment" class="entity.Comment" scope="request"/>
<html>
	<head>
		<title>Recreation Manager - Izmena komentara</title>
		<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="theme.css">
		<script type="text/javascript" src="scripts/linkfader.js"></script>
	</head>
	<c:if test="${user.userId==null}">
		<c:redirect url="./login.jsp" />
	</c:if>
	<body>
	<center>

	<c:import url="./header.jsp"></c:import>
	<table class="mainTable">
		<tr>
			<td width="200px" valign="top">
				<c:import url="./menu.jsp"></c:import>
			</td>			
			<td valign="top">
			<!-- itt kezdodik -->
			<form name="addCommentForm" action="./ChangeComment" method="post">
				<table class = "userChangeTable">
					<tr>
						<td colspan="2"><h2 align="center">Izmena komentara</h2></td>
					</tr>
					<tr>
						<td colspan="2" align="left" width="100%"><textarea name="comment" cols="50" rows="5">${comment.text}</textarea></td>
					</tr>
					<tr>				
						<td align="left">
						<input type="submit" name="submit" value="Izmeni">
						</td>
						<td align="right">
						<input type="hidden" name="commentId" value="${comment.commentId}">
						</td>
					</tr>
					<tr>
						<td colspan="2">&nbsp;</td>
					</tr>
					<tr>
						<td colspan="2"><a href="PrepareAppointmentView?appId=${comment.appointment.appointmentId}">Nazad</a></td>
					</tr>
				</table>
			</form>
			<!-- itt vegzodik -->
			</td>
		</tr>
	</table>


		
		</center>
	</body>	
</html>